# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxxf86misc
pkgver=1.0.4
pkgrel=0
pkgdesc="X11 XFree86 miscellaneous extension library"
url="http://xorg.freedesktop.org/"
arch="all"
options="!check"  # No test suite.
license="custom"
subpackages="$pkgname-dev $pkgname-doc"
depends=
makedepends="libxext-dev libx11-dev util-macros xorgproto"
source="https://www.x.org/releases/individual/lib/libXxf86misc-$pkgver.tar.bz2"

builddir="$srcdir/libXxf86misc-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}
sha512sums="1dbd51a51188a060f676b88e5d98809ea355f69933972ceb7721c83289b5bb94c1f7b889baa83209a5ed864e67dd8a4ed62f1393634e97cc99ce36a2cef447fb  libXxf86misc-1.0.4.tar.bz2"
